package com.eportal.ORM;

/**
 * WtPepJnlsBakId entity. @author MyEclipse Persistence Tools
 */

public class WtPepJnlsBakId implements java.io.Serializable {

	// Fields

	private String pepdate;
	private String msgtype;
	private String process;
	private String orgMgrCde;
	private String orgTermcde;
	private String orgMercode;
	private Integer trace;

	// Constructors

	/** default constructor */
	public WtPepJnlsBakId() {
	}

	/** full constructor */
	public WtPepJnlsBakId(String pepdate, String msgtype, String process,
			String orgMgrCde, String orgTermcde, String orgMercode,
			Integer trace) {
		this.pepdate = pepdate;
		this.msgtype = msgtype;
		this.process = process;
		this.orgMgrCde = orgMgrCde;
		this.orgTermcde = orgTermcde;
		this.orgMercode = orgMercode;
		this.trace = trace;
	}

	// Property accessors

	public String getPepdate() {
		return this.pepdate;
	}

	public void setPepdate(String pepdate) {
		this.pepdate = pepdate;
	}

	public String getMsgtype() {
		return this.msgtype;
	}

	public void setMsgtype(String msgtype) {
		this.msgtype = msgtype;
	}

	public String getProcess() {
		return this.process;
	}

	public void setProcess(String process) {
		this.process = process;
	}

	public String getOrgMgrCde() {
		return this.orgMgrCde;
	}

	public void setOrgMgrCde(String orgMgrCde) {
		this.orgMgrCde = orgMgrCde;
	}

	public String getOrgTermcde() {
		return this.orgTermcde;
	}

	public void setOrgTermcde(String orgTermcde) {
		this.orgTermcde = orgTermcde;
	}

	public String getOrgMercode() {
		return this.orgMercode;
	}

	public void setOrgMercode(String orgMercode) {
		this.orgMercode = orgMercode;
	}

	public Integer getTrace() {
		return this.trace;
	}

	public void setTrace(Integer trace) {
		this.trace = trace;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof WtPepJnlsBakId))
			return false;
		WtPepJnlsBakId castOther = (WtPepJnlsBakId) other;

		return ((this.getPepdate() == castOther.getPepdate()) || (this
				.getPepdate() != null
				&& castOther.getPepdate() != null && this.getPepdate().equals(
				castOther.getPepdate())))
				&& ((this.getMsgtype() == castOther.getMsgtype()) || (this
						.getMsgtype() != null
						&& castOther.getMsgtype() != null && this.getMsgtype()
						.equals(castOther.getMsgtype())))
				&& ((this.getProcess() == castOther.getProcess()) || (this
						.getProcess() != null
						&& castOther.getProcess() != null && this.getProcess()
						.equals(castOther.getProcess())))
				&& ((this.getOrgMgrCde() == castOther.getOrgMgrCde()) || (this
						.getOrgMgrCde() != null
						&& castOther.getOrgMgrCde() != null && this
						.getOrgMgrCde().equals(castOther.getOrgMgrCde())))
				&& ((this.getOrgTermcde() == castOther.getOrgTermcde()) || (this
						.getOrgTermcde() != null
						&& castOther.getOrgTermcde() != null && this
						.getOrgTermcde().equals(castOther.getOrgTermcde())))
				&& ((this.getOrgMercode() == castOther.getOrgMercode()) || (this
						.getOrgMercode() != null
						&& castOther.getOrgMercode() != null && this
						.getOrgMercode().equals(castOther.getOrgMercode())))
				&& ((this.getTrace() == castOther.getTrace()) || (this
						.getTrace() != null
						&& castOther.getTrace() != null && this.getTrace()
						.equals(castOther.getTrace())));
	}

	public int hashCode() {
		int result = 17;

		result = 37 * result
				+ (getPepdate() == null ? 0 : this.getPepdate().hashCode());
		result = 37 * result
				+ (getMsgtype() == null ? 0 : this.getMsgtype().hashCode());
		result = 37 * result
				+ (getProcess() == null ? 0 : this.getProcess().hashCode());
		result = 37 * result
				+ (getOrgMgrCde() == null ? 0 : this.getOrgMgrCde().hashCode());
		result = 37
				* result
				+ (getOrgTermcde() == null ? 0 : this.getOrgTermcde()
						.hashCode());
		result = 37
				* result
				+ (getOrgMercode() == null ? 0 : this.getOrgMercode()
						.hashCode());
		result = 37 * result
				+ (getTrace() == null ? 0 : this.getTrace().hashCode());
		return result;
	}

}